From: Jasper St. Pierre Date: Wed, 18 Sep 2013 21:36:09 +0000 (-0400) Subject: popupMenu: Center the labels in submenu items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3380 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=33a4f59cfb96a018fc69ac415bf18d6531bdf435;p=gnome-shell.git popupMenu: Center the labels in submenu items https://bugzilla.gnome.org/show_bug.cgi?id=708330 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3e57562d1..eeb777df5 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -948,14 +948,18 @@ const PopupSubMenuMenuItem = new Lang.Class({ this.actor.add_child(this.icon); } - this.label = new St.Label({ text: text }); + this.label = new St.Label({ text: text, + y_expand: true, + y_align: Clutter.ActorAlign.CENTER }); this.actor.add_child(this.label); this.actor.label_actor = this.label; let expander = new St.Bin({ style_class: 'popup-menu-item-expander' }); this.actor.add(expander, { expand: true }); - this.status = new St.Label({ style_class: 'popup-status-menu-item' }); + this.status = new St.Label({ style_class: 'popup-status-menu-item', + y_expand: true, + y_align: Clutter.ActorAlign.CENTER }); this.actor.add_child(this.status); this._triangle = new St.Label({ text: '\u25B8',